package com.ebelter.btcomlib.models.eventbus;


public class CommonEventBus<T> {
    public String from;//从什么地方来
    public String whichReceive;//哪个接收
    public int cmd;//命令字
    public String msg;//信息
    public T content;//内容

    public CommonEventBus(String from, String whichReceive, int cmd, String msg) {
        this.from = from;
        this.whichReceive = whichReceive;
        this.cmd = cmd;
        this.msg = msg;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }


    @Override
    public String toString() {
        return "CommonEventBus{" +
                "from='" + from + '\'' +
                ", whichReceive='" + whichReceive + '\'' +
                ", cmd=" + cmd +
                ", msg='" + msg + '\'' +
                ", content=" + content +
                '}';
    }
}
